package com.wp.quartz.controller;

import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;

import java.text.SimpleDateFormat;
import java.util.Date;

public class HelloJob extends QuartzJobBean {

	public static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");

	@Override
	protected void executeInternal(JobExecutionContext context) throws JobExecutionException {
		System.err.println(" executing at [" + SDF.format(new Date()) + "]"+"hello world");
	}
}
